<?php
include("../include/top.php");

$pid=$_GET['pid'];
if(strlen($pid) == 0){
	$error_info = "* 不能为空！";
}
else{
	if(strlen($pid) < 4 || strlen($pid) > 30){
		$error_info = "* 长度不符合要求！";
	}
	else{
		global $db;
		$num = $db -> row_count(TABLE_MEMBER,"passport = '".$pid."'");
		if($num != 0){
			$error_info = "* 该账号已被使用！";
		}
		else{
			$error_info = "该账号可以使用！";
		}
	}
}
echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".$error_info;
?>